Skip to content

[PWGJE] Fixing O2 build errors in jetCorrelationD0 - #17342

Merged
nzardosh merged 10 commits into
AliceO2Group:masterfrom
MattOckleton:master
Aug 6, 2026
Merged

[PWGJE] Fixing O2 build errors in jetCorrelationD0#17342
nzardosh merged 10 commits into
AliceO2Group:masterfrom
MattOckleton:master

Conversation

@MattOckleton

Copy link
Copy Markdown
Contributor

when the last pull request was merged, there was a couple of errors in the jetCorrelationD0 task. These are the fixes.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 13 warnings, 🔕 0 disabled

@github-actions github-actions Bot changed the title Fixing O2 build errors in jetCorrelationD0 [PWGJE] Fixing O2 build errors in jetCorrelationD0 Aug 5, 2026
@alibuild

alibuild commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 27b8c5f at 2026-08-06 11:27:

## sw/BUILD/O2Physics-latest/log
c++: fatal error: Killed signal terminated program cc1plus
c++: fatal error: Killed signal terminated program cc1plus
ninja: build stopped: subcommand failed.

Full log here.

vkucera
vkucera previously requested changes Aug 5, 2026
Comment on lines 357 to 361
constexpr int kD0ToKPi = 1;
constexpr int kD0ToKPiPi = 2;
constexpr int kD0ToPiPi = 3;
constexpr int kD0ToPiPiPi = 4;
constexpr int kD0ToKK = 5;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not redefine existing constants.

Comment on lines 374 to 384
category = 0; // signal -> D0 or D0bar, π+ K−
} else if ((d0DecayChannel == kD0ToKPi) && (selectedAs == -1 * matchedFrom)) {
category = 1; // reflection
} else if (d0DecayChannel == kD0ToKPiPi) {
category = 2; // corr bkg: π+ K− π0
} else if (d0DecayChannel == kD0ToPiPi) {
category = 3; // corr bkg: π+ π−
} else if (d0DecayChannel == kD0ToPiPiPi) {
category = 4; // corr bkg: π+ π− π0
} else if (d0DecayChannel == kD0ToKK) {
category = 5; // corr bkg: K+ K−

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your category values are magic numbers. Define them as enum.

@nzardosh
nzardosh enabled auto-merge (squash) August 6, 2026 08:04
@nzardosh
nzardosh dismissed vkucera’s stale review August 6, 2026 08:04

Since the requested changes don't impact anything upstream I am merging this now. But Matt please make another PR with Vit's requested changes addressed once this merges

@nzardosh
nzardosh merged commit e5903f7 into AliceO2Group:master Aug 6, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants